﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Domain.W
{
    /// <summary>
    /// 修改货运单
    /// </summary>
    public   class WaybillModel
    {
        /// <summary>
        ///主键id
        /// </summary>
        [Key]
        public int Id {  get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Required(ErrorMessage = "姓名不能为空")]
        [MaxLength(30, ErrorMessage = "姓名长度不能超过30字符")]
        public string UserName { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        [Required(ErrorMessage = "手机不能为空")]
        [MaxLength(30, ErrorMessage = "手机长度不能超过30字符")]
        public string Phone { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        [Required(ErrorMessage = "国家不能为空")]
        [MaxLength(30, ErrorMessage = "国家长度不能超过30字符")]
        public string Country { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        [Required(ErrorMessage = "省份不能为空")]
        [MaxLength(30, ErrorMessage = "省份长度不能超过30字符")]
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        [Required(ErrorMessage = "城市不能为空")]
        [MaxLength(30, ErrorMessage = "城市长度不能超过30字符")]
        public string City { get; set; }
        /// <summary>
        ///区县
        /// </summary>
        [Required(ErrorMessage = "区县不能为空")]
        [MaxLength(30, ErrorMessage = "区县长度不能超过30字符")]
        public string District { get; set; }
        /// <summary>
        ///邮编
        /// </summary>
        [Required(ErrorMessage = "邮编不能为空")]
        [MaxLength(30, ErrorMessage = "邮编长度不能超过30字符")]
        public string PostalCode { get; set; }
        /// <summary>
        ///地址
        /// </summary>
        [Required(ErrorMessage = "地址不能为空")]
        [MaxLength(30, ErrorMessage = "地址长度不能超过30字符")]
        public string Address { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        [Required(ErrorMessage = "备注不能为空")]
        [MaxLength(30, ErrorMessage = "备注长度不能超过30字符")]
        public string Remarks { get; set; }
        /// <summary>
        ///收件附件
        /// </summary>
        [Required(ErrorMessage = "收件附件不能为空")]
        [MaxLength(30, ErrorMessage = "收件附件长度不能超过30字符")]
        public string RecipientAttachment { get; set; }

    }
}
